package test_cases

import (
	"gitee.com/xiangxiaoc/elevator/models"
	"log"
	"time"
)

func RunCase1() {
	// 实例化一个电梯系统，楼层有 5 层
	eleSys := models.ElevatorSystem{
		TotalFloorNum: 5,
		Elevator: models.Elevator{
			Name:          "三菱电梯",
			RunningStatus: "停止",
			DoorStatus:    "已关门",
			CurrentFloor:  1,
		},
		ElevatorDestList: []int{},
	}

	// Case 1
	log.Println("Case 1 =====")
	log.Printf("获取楼层数：%v", eleSys.TotalFloorNum)
	time.Sleep(2 * time.Second)
	log.Printf("目标楼层队列：%v", eleSys.ElevatorDestList)
	time.Sleep(2 * time.Second)
	eleSys.Elevator.LogElevator()
	time.Sleep(3 * time.Second)
}
